package cn.ainit.bs.repList.entity;

import java.io.Serializable;

public class RepListColumnsPK implements Serializable{
	
	private static final long serialVersionUID = 6182772986335901384L;

	private String dsid;
	
	private String name;
	
	public String getDsid() {
		return dsid;
	}

	public void setDsid(String dsid) {
		this.dsid = dsid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (this == obj) {
			return true;
		}
		if (obj instanceof RepListColumnsPK) {
			RepListColumnsPK other = (RepListColumnsPK)obj;
			return this.dsid == other.dsid 
				&& this.name == other.name;
		}
		return false;
	}
	
	@Override
	public int hashCode() {
		return this.dsid.hashCode() 
				+ this.name.hashCode();
	}
}
